package edu.hunau.cxb18.orm.pojo;

import org.apache.ibatis.type.Alias;

/**
 * @author hb
 * @create 2020-03-04 10:17
 */
@Alias("Product") //指定当前实体类的别名为 Product
public class Product {
    private Integer id;
    private String name;
    private String pdesc;
    private String pic;
    private int stock;
    private double price;

    public Product() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPdesc() {
        return pdesc;
    }

    public void setPdesc(String pdesc) {
        this.pdesc = pdesc;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
